﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AlertMgr.aspx.cs" Inherits="AlertUI_AlertMgr" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
   <div id="SubMain"> <div id="S_Title">预警分类</div>
              <div id="Banner">
                <div id="Banner_Search">
                
                </div>
                <div id="Banner_Edit" style=" display:none;">
                <asp:Button ID="btn_Add" runat="server" Text="添加" 
                        PostBackUrl="~/AlertUI/AlertAMV.aspx" />
                &nbsp;&nbsp;
                <asp:Button ID="btn_Delete" runat="server" Text="删除" 
                    onclick="btn_Delete_Click" />
                </div>
             </div>
             <div id="Contant">
          <asp:GridView ID="GridView1" runat="server" 
                    AutoGenerateColumns="False" Width="689px">
                <Columns>
                     
                    <asp:TemplateField Visible="False">
                        <HeaderTemplate>
                            <asp:CheckBox ID="chk_All" runat="server" Text="全选" onclick="javascript:SelectAllCheckboxes(this);" />
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="chk" runat="server" />
                        </ItemTemplate>
                        <HeaderStyle Width="60px" />
                        <ItemStyle Width="50px" />
                    </asp:TemplateField>
                     
                    <asp:BoundField DataField="AlertID" HeaderText="编号" Visible="False" >
                        <ItemStyle Width="50px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="AlertName" HeaderText="预警名称" >
                        <ItemStyle Width="100px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="AlertRule" HeaderText="规则" Visible="False" >
                        <ItemStyle Width="150px" />
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="说明">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Description") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                        <asp:Label ID="TextBox1" runat="server" Text='<%# Bind("Description") %>'></asp:Label>
                        <%--<a>
                        <%# Eval("Description").ToString().Length > 15 ? Eval("Description").ToString().Substring(0, 15) + "..." : Eval("Description").ToString()%>
                        </a>--%>
                       </ItemTemplate>
                        <ItemStyle HorizontalAlign="Left" Width="230px" />
                    </asp:TemplateField>
                    <asp:BoundField DataField="OrganID" HeaderText="机构编号" Visible="False" >
                    
                        <ItemStyle Width="50px" />
                    </asp:BoundField>
                    
                        <asp:TemplateField Visible="False">
                        <ItemTemplate>
                        <a href='AlertAMV.aspx?ID=<%#Eval("AlertID")%>&Type=Edit'>修改</a>
                        <a href='AlertAMV.aspx?ID=<%#Eval("AlertID")%>&Type=View'>详细</a>
                        </ItemTemplate>
                            <ItemStyle Width="100px" />
                        </asp:TemplateField>
                </Columns>
        </asp:GridView></div>
        </div>
    </form>
</body>
</html>
